<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos  -->
			<title>Docs for page Dom.init.php</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
						<script src="../media/lib/classTree.js"></script>
												<script language="javascript" type="text/javascript">
				var imgPlus = new Image();
				var imgMinus = new Image();
				imgPlus.src = "../media/images/plus.png";
				imgMinus.src = "../media/images/minus.png";
				
				function showNode(Node){
							switch(navigator.family){
								case 'nn4':
									// Nav 4.x code fork...
							var oTable = document.layers["span" + Node];
							var oImg = document.layers["img" + Node];
									break;
								case 'ie4':
									// IE 4/5 code fork...
							var oTable = document.all["span" + Node];
							var oImg = document.all["img" + Node];
									break;
								case 'gecko':
									// Standards Compliant code fork...
							var oTable = document.getElementById("span" + Node);
							var oImg = document.getElementById("img" + Node);
									break;
							}
					oImg.src = imgMinus.src;
					oTable.style.display = "block";
				}
				
				function hideNode(Node){
							switch(navigator.family){
								case 'nn4':
									// Nav 4.x code fork...
							var oTable = document.layers["span" + Node];
							var oImg = document.layers["img" + Node];
									break;
								case 'ie4':
									// IE 4/5 code fork...
							var oTable = document.all["span" + Node];
							var oImg = document.all["img" + Node];
									break;
								case 'gecko':
									// Standards Compliant code fork...
							var oTable = document.getElementById("span" + Node);
							var oImg = document.getElementById("img" + Node);
									break;
							}
					oImg.src = imgPlus.src;
					oTable.style.display = "none";
				}
				
				function nodeIsVisible(Node){
							switch(navigator.family){
								case 'nn4':
									// Nav 4.x code fork...
							var oTable = document.layers["span" + Node];
									break;
								case 'ie4':
									// IE 4/5 code fork...
							var oTable = document.all["span" + Node];
									break;
								case 'gecko':
									// Standards Compliant code fork...
							var oTable = document.getElementById("span" + Node);
									break;
							}
					return (oTable && oTable.style.display == "block");
				}
				
				function toggleNodeVisibility(Node){
					if (nodeIsVisible(Node)){
						hideNode(Node);
					}else{
						showNode(Node);
					}
				}
			</script>
					</head>
		<body>
			<div class="page-body">			
<h2 class="file-name"><img src="../media/images/Page_logo.png" alt="File" style="vertical-align: middle">/libs/Dom.init.php</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
							<a href="#sec-classes">Classes</a>
			|							<a href="#sec-includes">Includes</a>
			|							<a href="#sec-constants">Constants</a>
			|									<a href="#sec-functions">Functions</a>
			</div>
	<div class="info-box-body">	
		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">This file is part of Dom framework.</p>
<p class="description"><p>Dom framework is free software: you can redistribute it and/or modify  it under the terms of the GNU General Public License as published by  the Free Software Foundation, either version 3 of the License, or  (at your option) any later version.</p><p>Dom framework is distributed in the hope that it will be useful,  but WITHOUT ANY WARRANTY; without even the implied warranty of  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  GNU General Public License for more details.</p><p>You should have received a copy of the GNU General Public License  along with Dom framework.  If not, see &lt;http://www.gnu.org/licenses/&gt;.</p></p>
	<ul class="tags">
				<li><span class="field">author:</span> Oliver Leisalu &lt;<a href="mailto:oliver@inditel.ee">oliver@inditel.ee</a>&gt;</li>
				<li><span class="field">copyright:</span> 2007-2009 Inditel Meedia OÜ</li>
				<li><span class="field">link:</span> <a href="http://inditel.ee/">http://inditel.ee/</a></li>
				<li><span class="field">filesource:</span> <a href="../__filesource/fsource_Dom__libsDom.init.php.html">Source Code for this file</a></li>
			</ul>
		
			</div>
</div>
		
	<a name="sec-classes"></a>	
	<div class="info-box">
		<div class="info-box-title">Classes</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
			<span class="disabled">Classes</span>
			|							<a href="#sec-includes">Includes</a>
				|										<a href="#sec-constants">Constants</a>
				|													<a href="#sec-functions">Functions</a>
					</div>
		<div class="info-box-body">	
			<table cellpadding="2" cellspacing="0" class="class-table">
				<tr>
					<th class="class-table-header">Class</th>
					<th class="class-table-header">Description</th>
				</tr>
								<tr>
					<td style="padding-right: 2em; vertical-align: top; white-space: nowrap">
						<img src="../media/images/Class.png"
								 alt=" class"
								 title=" class"/>
						<a href="../Dom/Dom.html">Dom</a>
					</td>
					<td>
											Constants that must be defined:  DOM_CONF_DIR_PATH - path to configuration files dir  DOM_CACHE_PATH - path where cache files can be stored  DOM_URL - url to Dom.init.php dir. Its set automatically.
										</td>
				</tr>
							</table>
		</div>
	</div>

	<a name="sec-includes"></a>	
	<div class="info-box">
		<div class="info-box-title">Includes</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
							<a href="#sec-classes">Classes</a>
				|						<span class="disabled">Includes</span>
			|							<a href="#sec-constants">Constants</a>
				|													<a href="#sec-functions">Functions</a>
					</div>
		<div class="info-box-body">	
			<a name="_$dirname_/DomMonitor/DomMonitorEntry_class_php"><!-- --></a>
<div class="oddrow">
	
	<div>
		<img src="../media/images/Page.png" alt=" " />
		<span class="include-title">
			<span class="include-type">require</span>
			(<span class="include-name">$dirname.'/DomMonitor/DomMonitorEntry.class.php'</span>)
			(line <span class="line-number"><a href="../__filesource/fsource_Dom__libsDom.init.php.html#a577">577</a></span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	
</div>
<a name="_$dirname_/DomMonitor/DomMonitor_class_php"><!-- --></a>
<div class="evenrow">
	
	<div>
		<img src="../media/images/Page.png" alt=" " />
		<span class="include-title">
			<span class="include-type">require</span>
			(<span class="include-name">$dirname.'/DomMonitor/DomMonitor.class.php'</span>)
			(line <span class="line-number"><a href="../__filesource/fsource_Dom__libsDom.init.php.html#a576">576</a></span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	
</div>
<a name="_$dirname_/DomCache/DomCache_class_php"><!-- --></a>
<div class="oddrow">
	
	<div>
		<img src="../media/images/Page.png" alt=" " />
		<span class="include-title">
			<span class="include-type">require_once</span>
			(<span class="include-name">$dirname.'/DomCache/DomCache.class.php'</span>)
			(line <span class="line-number"><a href="../__filesource/fsource_Dom__libsDom.init.php.html#a582">582</a></span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	
</div>
<a name="_$dirname_/DomLocker/DomLocker_class_php"><!-- --></a>
<div class="evenrow">
	
	<div>
		<img src="../media/images/Page.png" alt=" " />
		<span class="include-title">
			<span class="include-type">require_once</span>
			(<span class="include-name">$dirname.'/DomLocker/DomLocker.class.php'</span>)
			(line <span class="line-number"><a href="../__filesource/fsource_Dom__libsDom.init.php.html#a581">581</a></span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	
</div>
<a name="_$dirname_/DomLogger/DomFileLogger_class_php"><!-- --></a>
<div class="oddrow">
	
	<div>
		<img src="../media/images/Page.png" alt=" " />
		<span class="include-title">
			<span class="include-type">require_once</span>
			(<span class="include-name">$dirname.'/DomLogger/DomFileLogger.class.php'</span>)
			(line <span class="line-number"><a href="../__filesource/fsource_Dom__libsDom.init.php.html#a583">583</a></span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	
</div>
		</div>
	</div>
	
	<a name="sec-constants"></a>	
	<div class="info-box">
		<div class="info-box-title">Constants</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
							<a href="#sec-classes">Classes</a>
				|										<a href="#sec-includes">Includes</a>
				|						<span class="disabled">Constants</span>
			|										<a href="#sec-functions">Functions</a>
					</div>
		<div class="info-box-body">	
			<a name="defineDOM_MONITOR"><!-- --></a>
<div class="evenrow">
	
	<div>
		<img src="../media/images/Constant.png" />
		<span class="const-title">
			<span class="const-name">DOM_MONITOR</span> = DOM_MONITOR_LOG===trueor$_SESSION['debugMode']===true
			(line <span class="line-number"><a href="../__filesource/fsource_Dom__libsDom.init.php.html#a574">574</a></span>)
		</span>
	</div>
	
	<!-- ========== Info from phpDoc block ========= -->
	
		
</div>
		</div>
	</div>
	
	
	<a name="sec-functions"></a>	
	<div class="info-box">
		<div class="info-box-title">Functions</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
							<a href="#sec-classes">Classes</a>
				|										<a href="#sec-includes">Includes</a>
				|										<a href="#sec-constants">Constants</a>
				|									<span class="disabled">Functions</span>
		</div>
		<div class="info-box-body">	
			<a name="functiondebug" id="functiondebug"><!-- --></a>
<div class="oddrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">debug</span> (line <span class="line-number"><a href="../__filesource/fsource_Dom__libsDom.init.php.html#a29">29</a></span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Debug function. Useful for debugging your script. Outputs given argument.</p>
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			debug
		</span>
					(<span class="var-type">Mixed</span>&nbsp;<span class="var-name">$data</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">Mixed</span>
				<span class="var-name">$data</span>			</li>
				</ul>
		
	
</div>
<a name="functionDomDefaultExceptionHandler" id="functionDomDefaultExceptionHandler"><!-- --></a>
<div class="evenrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">DomDefaultExceptionHandler</span> (line <span class="line-number"><a href="../__filesource/fsource_Dom__libsDom.init.php.html#a257">257</a></span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Handles not catched exceptions.</p>
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			DomDefaultExceptionHandler
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">$e</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">Exception</span>
				<span class="var-name">$e</span>			</li>
				</ul>
		
	
</div>
<a name="functionDomErrorHandler" id="functionDomErrorHandler"><!-- --></a>
<div class="oddrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">DomErrorHandler</span> (line <span class="line-number"><a href="../__filesource/fsource_Dom__libsDom.init.php.html#a82">82</a></span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Dom errorhandler</p>
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			DomErrorHandler
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">$errno</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$errstr</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$errfile</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$errline</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type"></span>
				<span class="var-name">$errno</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$errstr</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$errfile</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$errline</span>			</li>
				</ul>
		
	
</div>
<a name="functionDomErrorReporter" id="functionDomErrorReporter"><!-- --></a>
<div class="evenrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">DomErrorReporter</span> (line <span class="line-number"><a href="../__filesource/fsource_Dom__libsDom.init.php.html#a163">163</a></span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Handles exception. (logs and returns nice error message)  Uses DomDBLogger to log error to database.</p>
<p class="description"><p>If DOM_SEND_ERRORS_TO_EMAIL is valid email address then all errors will be sent to this email.  If error logging fails, it will try to send email to DOM_ADMIN_EMAIL about the problem. (Even if DOM_SEND_ERRORS_TO_EMAIL is valid email.)  Sending emails depends on Mail class.</p></p>
	<div class="method-signature">
		<span class="method-result">String</span>
		<span class="method-name">
			DomErrorReporter
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">$error</span>, <span class="var-type">Mixed</span>&nbsp;<span class="var-name">$exception</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">Mixed</span>
				<span class="var-name">$exception</span><span class="var-description">: Takes in Exception or just String with error message.</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$error</span>			</li>
				</ul>
		
	
</div>
<a name="functionexceptionToString" id="functionexceptionToString"><!-- --></a>
<div class="oddrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">exceptionToString</span> (line <span class="line-number"><a href="../__filesource/fsource_Dom__libsDom.init.php.html#a266">266</a></span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Shows nice error message for exceptions.</p>
<p class="description"><p>If fails to load error template it will send email to DOM_ADMIN_EMAIL about the problem.</p></p>
	<div class="method-signature">
		<span class="method-result">String</span>
		<span class="method-name">
			exceptionToString
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">$exception</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$safe</span> = <span class="var-default">true</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$backtraceOpen</span> = <span class="var-default">false</span>])
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">Exception</span>
				<span class="var-name">$exception</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$safe</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$backtraceOpen</span>			</li>
				</ul>
		
	
</div>
<a name="functionip" id="functionip"><!-- --></a>
<div class="evenrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">ip</span> (line <span class="line-number"><a href="../__filesource/fsource_Dom__libsDom.init.php.html#a60">60</a></span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">author:</span> Oliver Leisalu</li>
			</ul>
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			ip
		</span>
					([<span class="var-type"></span>&nbsp;<span class="var-name">$a</span> = <span class="var-default">1</span>])
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type"></span>
				<span class="var-name">$a</span>			</li>
				</ul>
		
	
</div>
<a name="functiontrace" id="functiontrace"><!-- --></a>
<div class="oddrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">trace</span> (line <span class="line-number"><a href="../__filesource/fsource_Dom__libsDom.init.php.html#a72">72</a></span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Sends argument to trace window.</p>
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			trace
		</span>
					(<span class="var-type">Mixed</span>&nbsp;<span class="var-name">$data</span>, [<span class="var-type">String</span>&nbsp;<span class="var-name">$group</span> = <span class="var-default">&#039;trace&#039;</span>])
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">Mixed</span>
				<span class="var-name">$data</span>			</li>
					<li>
				<span class="var-type">String</span>
				<span class="var-name">$group</span>			</li>
				</ul>
		
	
</div>
		</div>
	</div>
	
	<p class="notes" id="credit">
		Documentation generated on Fri, 24 Sep 2010 21:11:53 +0000 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a>
	</p>
	</div></body>
</html>